package com.LittleHan.crm.workbench.dao;


import com.LittleHan.crm.workbench.entity.Clue;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClueDao {
    public int insertClue(Clue clue);
    public int getTotal(@Param("fullname") String fullname, @Param("company") String company, @Param("phone") String phone,
                        @Param("source") String source,@Param("owner") String owner,@Param("mphone") String mphone,
                        @Param("state") String state,@Param("pageNo") int pageNo,@Param("pageSize") int pageSize);

    public List<Clue> selectClue(@Param("fullname") String fullname, @Param("company") String company, @Param("phone") String phone,
                                 @Param("source") String source,@Param("owner") String owner,@Param("mphone") String mphone,
                                 @Param("state") String state,@Param("pageNo") int pageNo,@Param("pageSize") int pageSize);

    public Clue getClue(String id);
    public int updateClue(Clue clue);
    public int delClue(String []id);
    public Clue clueToInf(String id);
    public Clue getInfoByClueId(String clueId);
    public int delByClueId(String id);
}
